package com.xyy.saas.payment.cores.enums;

/**
 * 审核状态
 */
public enum AccountCreateStatusEnum {
    PROCESSING("PROCESSING", "审核中"),
    PASS("PASS", "审核通过"),
    VERIFYING("VERIFYING", "验证中"),
    REJECT("REJECT", "审核驳回"),
    SIGN("WAIT_SIGN", "待签约"),
    SUCCESS("SUCCESS", "开户完成"),
    FAIL("FAIL", "开户失败"),
    ;

    AccountCreateStatusEnum(String status, String desc) {
        this.status = status;
        this.desc = desc;
    }

    /**
     * 是否可以重提
     */
    public static boolean canSubmit(String status) {
        return REJECT.status.equals(status) || FAIL.status.equals(status);
    }

    private String status;
    private String desc;

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
